package com.fast.mybatis.test;

import org.apache.ibatis.type.JdbcType;

import com.fast.mybatis.annotation.Column;
import com.fast.mybatis.annotation.Id;
import com.fast.mybatis.annotation.OrderBy;
import com.fast.mybatis.annotation.Table;
import com.fast.mybatis.constants.JavaType;
import com.fast.mybatis.enums.OrderType;

@Table(name="model")
public class Model {
	
	@Id
	@Column(columnName="id",javaType=JavaType.STRING,jdbcType=JdbcType.VARCHAR)
	private String id;
	@Column(columnName="name",javaType=JavaType.STRING,jdbcType=JdbcType.VARCHAR)
	private String name;
	@Column(columnName="sex",javaType=JavaType.STRING,jdbcType=JdbcType.VARCHAR)
	private String sex;
	
	@OrderBy(orderBy=OrderType.DESC)
	@Column(columnName="age",javaType=JavaType.INTEGER,jdbcType=JdbcType.INTEGER)
	private int age;
	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Model(String id, String name) {
		this.id = id;
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
